package com.example.shengyin.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.Range;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import java.util.Date;

/**
 * Admin对象 d_admin
 * 
 * @author ruoyi
 * @date 2023-07-29
 */
@Data
@ApiModel("症状类")
public class Sym
{
    /** 编号 */
    @ApiModelProperty("编号")
    private Long id;
    @NotNull(message = "症状种类编号")
    @ApiModelProperty("症状种类编号")
    private Long symtype;
    private String symtypename;

    /** 姓名 */
    @NotNull(message = "症状")
    @ApiModelProperty("症状")
    private String sym;

    @NotNull(message = "内容不能为空")
    @ApiModelProperty("内容")
    private String content;
    @NotNull(message = "封面图片不能为空")
    @ApiModelProperty("封面图片")
    private String coverimg;

    @NotNull(message = "标题不能为空")
    @ApiModelProperty("标题")
    private String title;

    @ApiModelProperty("发布人")
    private String poster;


    @ApiModelProperty("发布时间")
    private Date posttime;

    @NotNull(message = "是否启用不能为空")
    @ApiModelProperty("是否启用")
    private Boolean isvalid;
}
